package com.fc.v2.controller;

import com.fc.v2.feignServer.UserFeignService;
import com.fc.v2.model.auto.SysUser;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
@RequestMapping("/AdminController")
@MapperScan("com.fc.v2.mapper.*")
public class AdminController {

    @Autowired
    private UserFeignService userFeignService;


    @GetMapping("/getUserList")
    public Object getUserList(){
        List<SysUser> list= userFeignService.list2();
        return list;

    }

}
